<?php /* Smarty version Smarty-3.1.7, created on 2012-05-21 11:51:15
         compiled from "./templates/index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10776932864fb99ddc29c056-29355570%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c0360d049dff10f364dfc53ba2cc3958abf6ee6d' => 
    array (
      0 => './templates/index.tpl',
      1 => 1337568662,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10776932864fb99ddc29c056-29355570',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.7',
  'unifunc' => 'content_4fb99ddc4579e',
  'variables' => 
  array (
    'sitemenu' => 0,
    'categorys' => 0,
    'category' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fb99ddc4579e')) {function content_4fb99ddc4579e($_smarty_tpl) {?><div id="contentWrap">

<div id="header">
<?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</div>

<div id="sitemenu">
<?php echo $_smarty_tpl->tpl_vars['sitemenu']->value;?>

</div>

<h1>テスト</h1>

現在の年月日時：<?php echo $_SESSION['nowtime'];?>

<br>

GETで渡ってきた値：
<br>
関数を使ってない<?php echo $_GET['id1'];?>
と
<br>
|htmlspecialcharsを噛ませた<?php echo htmlspecialchars($_GET['id2']);?>

<br>
<form action="/" method="get">
<input type="text" name="id1">
<input type="text" name="id2">
<input type="submit" value="送信">
</form>
<br>

<?php echo $_smarty_tpl->tpl_vars['categorys']->value[1];?>

<br>
<?php  $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['category']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['categorys']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value){
$_smarty_tpl->tpl_vars['category']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['category']->key;
?>
カテゴリー：<?php echo $_smarty_tpl->tpl_vars['category']->value;?>
<br>
<?php } ?>
</div><?php }} ?>